<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="CompanyData" targetNamespace="http://tempuri.org/CompanyData.xsd" xmlns:mstns="http://tempuri.org/CompanyData.xsd" xmlns="http://tempuri.org/CompanyData.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
        </Connections>
        <Tables>
        </Tables>
        <Sources>
        </Sources>
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="CompanyData" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msdata:EnforceConstraints="False" msprop:Generator_UserDSName="CompanyData" msprop:Generator_DataSetName="CompanyData" msprop:User_DataSetName="CompanyData" msprop:DSGenerator_DataSetName="CompanyData">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Customers" msprop:Generator_SuspendValidationVarName="m_suspendValidation" msprop:Generator_RowDeletedName="CustomersRowDeleted" msprop:Generator_SuspendValidationPropName="SuspendValidation" msprop:User_TableName="Customers" msprop:Generator_RowChangedName="CustomersRowChanged" msprop:Generator_RowClassName="CustomersRow" msprop:Generator_RowChangingName="CustomersRowChanging" msprop:Generator_UserTableName="Customers" msprop:Generator_RowEvArgName="CustomersRowChangeEvent" msprop:Generator_RowEvHandlerName="CustomersRowChangeEventHandler" msprop:Generator_TableClassName="CustomersDataTable" msprop:Generator_TableVarName="tableCustomers" msprop:Generator_RowDeletingName="CustomersRowDeleting" msprop:Generator_TablePropName="Customers">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="CustomerID" msdata:AutoIncrement="true" msprop:Generator_DelegateName="CustomerIDChangeEventHandler" msprop:Generator_ChangingEventName="CustomerIDChanging" msprop:Generator_ColumnVarNameInTable="columnCustomerID" msprop:Generator_EventArgName="CustomerIDChangeEventArg" msprop:User_ColumnName="CustomerID" msprop:Generator_ColumnPropNameInRow="CustomerID" msprop:Generator_ChangedEventName="CustomerIDChanged" msprop:Generator_ColumnPropNameInTable="CustomerIDColumn" msprop:Generator_UserColumnName="CustomerID" type="xs:int" />
              <xs:element name="ContactName" msprop:Generator_DelegateName="ContactNameChangeEventHandler" msprop:Generator_ChangingEventName="ContactNameChanging" msprop:Generator_ColumnVarNameInTable="columnContactName" msprop:Generator_EventArgName="ContactNameChangeEventArg" msprop:User_ColumnName="ContactName" msprop:Generator_ColumnPropNameInRow="ContactName" msprop:Generator_ChangedEventName="ContactNameChanged" msprop:Generator_ColumnPropNameInTable="ContactNameColumn" msprop:Generator_UserColumnName="ContactName" type="xs:string" />
              <xs:element name="Phone" msprop:Generator_DelegateName="PhoneChangeEventHandler" msprop:Generator_ChangingEventName="PhoneChanging" msprop:Generator_ColumnVarNameInTable="columnPhone" msprop:Generator_EventArgName="PhoneChangeEventArg" msprop:User_ColumnName="Phone" msprop:Generator_ColumnPropNameInRow="Phone" msprop:Generator_ChangedEventName="PhoneChanged" msprop:Generator_ColumnPropNameInTable="PhoneColumn" msprop:Generator_UserColumnName="Phone" type="xs:string" />
              <xs:element name="Fax" msprop:Generator_DelegateName="FaxChangeEventHandler" msprop:Generator_ChangingEventName="FaxChanging" msprop:Generator_ColumnVarNameInTable="columnFax" msprop:Generator_EventArgName="FaxChangeEventArg" msprop:User_ColumnName="Fax" msprop:Generator_ColumnPropNameInRow="Fax" msprop:Generator_ChangedEventName="FaxChanged" msprop:Generator_ColumnPropNameInTable="FaxColumn" msprop:Generator_UserColumnName="Fax" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Orders" msprop:Generator_SuspendValidationVarName="m_suspendValidation" msprop:Generator_RowDeletedName="OrdersRowDeleted" msprop:Generator_SuspendValidationPropName="SuspendValidation" msprop:User_TableName="Orders" msprop:Generator_RowChangedName="OrdersRowChanged" msprop:Generator_RowClassName="OrdersRow" msprop:Generator_RowChangingName="OrdersRowChanging" msprop:Generator_UserTableName="Orders" msprop:Generator_RowEvArgName="OrdersRowChangeEvent" msprop:Generator_RowEvHandlerName="OrdersRowChangeEventHandler" msprop:Generator_TableClassName="OrdersDataTable" msprop:Generator_TableVarName="tableOrders" msprop:Generator_RowDeletingName="OrdersRowDeleting" msprop:Generator_TablePropName="Orders">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="OrderID" msdata:AutoIncrement="true" msprop:Generator_DelegateName="OrderIDChangeEventHandler" msprop:Generator_ChangingEventName="OrderIDChanging" msprop:Generator_ColumnVarNameInTable="columnOrderID" msprop:Generator_EventArgName="OrderIDChangeEventArg" msprop:User_ColumnName="OrderID" msprop:Generator_ColumnPropNameInRow="OrderID" msprop:Generator_ChangedEventName="OrderIDChanged" msprop:Generator_ColumnPropNameInTable="OrderIDColumn" msprop:Generator_UserColumnName="OrderID" type="xs:int" />
              <xs:element name="CustomerID" msprop:Generator_DelegateName="CustomerIDChangeEventHandler" msprop:Generator_ChangingEventName="CustomerIDChanging" msprop:Generator_ColumnVarNameInTable="columnCustomerID" msprop:Generator_EventArgName="CustomerIDChangeEventArg" msprop:User_ColumnName="CustomerID" msprop:Generator_ColumnPropNameInRow="CustomerID" msprop:Generator_ChangedEventName="CustomerIDChanged" msprop:Generator_ColumnPropNameInTable="CustomerIDColumn" msprop:Generator_UserColumnName="CustomerID" type="xs:int" />
              <xs:element name="StatusID" msprop:Generator_DelegateName="StatusIDChangeEventHandler" msprop:Generator_ChangingEventName="StatusIDChanging" msprop:Generator_ColumnVarNameInTable="columnStatusID" msprop:Generator_EventArgName="StatusIDChangeEventArg" msprop:User_ColumnName="StatusID" msprop:Generator_ColumnPropNameInRow="StatusID" msprop:Generator_ChangedEventName="StatusIDChanged" msprop:Generator_ColumnPropNameInTable="StatusIDColumn" msprop:Generator_UserColumnName="StatusID" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Status" msprop:Generator_SuspendValidationVarName="m_suspendValidation" msprop:Generator_RowDeletedName="StatusRowDeleted" msprop:Generator_SuspendValidationPropName="SuspendValidation" msprop:User_TableName="Status" msprop:Generator_RowChangedName="StatusRowChanged" msprop:Generator_RowClassName="StatusRow" msprop:Generator_RowChangingName="StatusRowChanging" msprop:Generator_UserTableName="Status" msprop:Generator_RowEvArgName="StatusRowChangeEvent" msprop:Generator_RowEvHandlerName="StatusRowChangeEventHandler" msprop:Generator_TableClassName="StatusDataTable" msprop:Generator_TableVarName="tableStatus" msprop:Generator_RowDeletingName="StatusRowDeleting" msprop:Generator_TablePropName="Status">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="StatusID" msprop:Generator_DelegateName="StatusIDChangeEventHandler" msprop:Generator_ChangingEventName="StatusIDChanging" msprop:Generator_ColumnVarNameInTable="columnStatusID" msprop:Generator_EventArgName="StatusIDChangeEventArg" msprop:User_ColumnName="StatusID" msprop:Generator_ColumnPropNameInRow="StatusID" msprop:Generator_ChangedEventName="StatusIDChanged" msprop:Generator_ColumnPropNameInTable="StatusIDColumn" msprop:Generator_UserColumnName="StatusID" type="xs:int" />
              <xs:element name="Status" msdata:ReadOnly="true" msprop:Generator_DelegateName="StatusChangeEventHandler" msprop:Generator_ChangingEventName="StatusChanging" msprop:Generator_ColumnVarNameInTable="columnStatus" msprop:Generator_EventArgName="StatusChangeEventArg" msprop:User_ColumnName="Status" msprop:Generator_ColumnPropNameInRow="Status" msprop:Generator_ChangedEventName="StatusChanged" msprop:Generator_ColumnPropNameInTable="StatusColumn" msprop:Generator_UserColumnName="Status" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="Products" msprop:Generator_SuspendValidationVarName="m_suspendValidation" msprop:Generator_RowDeletedName="ProductsRowDeleted" msprop:Generator_SuspendValidationPropName="SuspendValidation" msprop:User_TableName="Products" msprop:Generator_RowChangedName="ProductsRowChanged" msprop:Generator_RowClassName="ProductsRow" msprop:Generator_RowChangingName="ProductsRowChanging" msprop:Generator_UserTableName="Products" msprop:Generator_RowEvArgName="ProductsRowChangeEvent" msprop:Generator_RowEvHandlerName="ProductsRowChangeEventHandler" msprop:Generator_TableClassName="ProductsDataTable" msprop:Generator_TableVarName="tableProducts" msprop:Generator_RowDeletingName="ProductsRowDeleting" msprop:Generator_TablePropName="Products">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ProductID" msdata:AutoIncrement="true" msprop:Generator_DelegateName="ProductIDChangeEventHandler" msprop:Generator_ChangingEventName="ProductIDChanging" msprop:Generator_ColumnVarNameInTable="columnProductID" msprop:Generator_EventArgName="ProductIDChangeEventArg" msprop:User_ColumnName="ProductID" msprop:Generator_ColumnPropNameInRow="ProductID" msprop:Generator_ChangedEventName="ProductIDChanged" msprop:Generator_ColumnPropNameInTable="ProductIDColumn" msprop:Generator_UserColumnName="ProductID" type="xs:int" />
              <xs:element name="ProductName" msprop:Generator_DelegateName="ProductNameChangeEventHandler" msprop:Generator_ChangingEventName="ProductNameChanging" msprop:Generator_ColumnVarNameInTable="columnProductName" msprop:Generator_EventArgName="ProductNameChangeEventArg" msprop:User_ColumnName="ProductName" msprop:Generator_ColumnPropNameInRow="ProductName" msprop:Generator_ChangedEventName="ProductNameChanged" msprop:Generator_ColumnPropNameInTable="ProductNameColumn" msprop:Generator_UserColumnName="ProductName" type="xs:string" />
              <xs:element name="Inventory" msprop:Generator_DelegateName="InventoryChangeEventHandler" msprop:Generator_ChangingEventName="InventoryChanging" msprop:Generator_ColumnVarNameInTable="columnInventory" msprop:Generator_EventArgName="InventoryChangeEventArg" msprop:User_ColumnName="Inventory" msprop:Generator_ColumnPropNameInRow="Inventory" msprop:Generator_ChangedEventName="InventoryChanged" msprop:Generator_ColumnPropNameInTable="InventoryColumn" msprop:Generator_UserColumnName="Inventory" type="xs:int" default="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="OrderDetails" msprop:Generator_SuspendValidationVarName="m_suspendValidation" msprop:Generator_RowDeletedName="OrderDetailsRowDeleted" msprop:Generator_SuspendValidationPropName="SuspendValidation" msprop:User_TableName="OrderDetails" msprop:Generator_RowChangedName="OrderDetailsRowChanged" msprop:Generator_RowClassName="OrderDetailsRow" msprop:Generator_RowChangingName="OrderDetailsRowChanging" msprop:Generator_UserTableName="OrderDetails" msprop:Generator_RowEvArgName="OrderDetailsRowChangeEvent" msprop:Generator_RowEvHandlerName="OrderDetailsRowChangeEventHandler" msprop:Generator_TableClassName="OrderDetailsDataTable" msprop:Generator_TableVarName="tableOrderDetails" msprop:Generator_RowDeletingName="OrderDetailsRowDeleting" msprop:Generator_TablePropName="OrderDetails">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="OrderID" msdata:Caption="CustomerID" msprop:Generator_DelegateName="OrderIDChangeEventHandler" msprop:Generator_ChangingEventName="OrderIDChanging" msprop:Generator_ColumnVarNameInTable="columnOrderID" msprop:Generator_EventArgName="OrderIDChangeEventArg" msprop:User_ColumnName="OrderID" msprop:Generator_ColumnPropNameInRow="OrderID" msprop:Generator_ChangedEventName="OrderIDChanged" msprop:Generator_ColumnPropNameInTable="OrderIDColumn" msprop:Generator_UserColumnName="OrderID" type="xs:int" />
              <xs:element name="ProductID" msdata:Caption="StatusID" msprop:Generator_DelegateName="ProductIDChangeEventHandler" msprop:Generator_ChangingEventName="ProductIDChanging" msprop:Generator_ColumnVarNameInTable="columnProductID" msprop:Generator_EventArgName="ProductIDChangeEventArg" msprop:User_ColumnName="ProductID" msprop:Generator_ColumnPropNameInRow="ProductID" msprop:Generator_ChangedEventName="ProductIDChanged" msprop:Generator_ColumnPropNameInTable="ProductIDColumn" msprop:Generator_UserColumnName="ProductID" type="xs:int" />
              <xs:element name="Quantity" msprop:Generator_DelegateName="QuantityChangeEventHandler" msprop:Generator_ChangingEventName="QuantityChanging" msprop:Generator_ColumnVarNameInTable="columnQuantity" msprop:Generator_EventArgName="QuantityChangeEventArg" msprop:User_ColumnName="Quantity" msprop:Generator_ColumnPropNameInRow="Quantity" msprop:Generator_ChangedEventName="QuantityChanged" msprop:Generator_ColumnPropNameInTable="QuantityColumn" msprop:Generator_UserColumnName="Quantity" type="xs:int" />
              <xs:element name="Inventory" msdata:ReadOnly="true" msdata:Expression="Parent(FK_Products_OrderDetails).Inventory" msprop:Generator_DelegateName="InventoryChangeEventHandler" msprop:Generator_ChangingEventName="InventoryChanging" msprop:Generator_ColumnVarNameInTable="columnInventory" msprop:Generator_EventArgName="InventoryChangeEventArg" msprop:User_ColumnName="Inventory" msprop:Generator_ColumnPropNameInRow="Inventory" msprop:Generator_ChangedEventName="InventoryChanged" msprop:Generator_ColumnPropNameInTable="InventoryColumn" msprop:Generator_UserColumnName="Inventory" type="xs:int" minOccurs="0" />
              <xs:element name="ProductName" msdata:ReadOnly="true" msdata:Expression="Parent(FK_Products_OrderDetails).ProductName" msprop:Generator_DelegateName="ProductNameChangeEventHandler" msprop:Generator_ChangingEventName="ProductNameChanging" msprop:Generator_ColumnVarNameInTable="columnProductName" msprop:Generator_EventArgName="ProductNameChangeEventArg" msprop:User_ColumnName="ProductName" msprop:Generator_ColumnPropNameInRow="ProductName" msprop:Generator_ChangedEventName="ProductNameChanged" msprop:Generator_ColumnPropNameInTable="ProductNameColumn" msprop:Generator_UserColumnName="ProductName" type="xs:string" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Customers" />
      <xs:field xpath="mstns:CustomerID" />
    </xs:unique>
    <xs:unique name="Orders_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Orders" />
      <xs:field xpath="mstns:OrderID" />
    </xs:unique>
    <xs:unique name="Status_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Status" />
      <xs:field xpath="mstns:StatusID" />
    </xs:unique>
    <xs:unique name="Constraint2">
      <xs:selector xpath=".//mstns:Status" />
      <xs:field xpath="mstns:Status" />
    </xs:unique>
    <xs:unique name="Products_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Products" />
      <xs:field xpath="mstns:ProductID" />
    </xs:unique>
    <xs:unique name="OrderDetails_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:OrderDetails" />
      <xs:field xpath="mstns:OrderID" />
      <xs:field xpath="mstns:ProductID" />
    </xs:unique>
    <xs:unique name="OrderDetails_Constraint2" msdata:ConstraintName="Constraint2">
      <xs:selector xpath=".//mstns:OrderDetails" />
      <xs:field xpath="mstns:OrderID" />
    </xs:unique>
    <xs:keyref name="FK_Orders_OrderDetails" refer="Orders_Constraint1" msprop:rel_Generator_UserRelationName="FK_Orders_OrderDetails" msprop:rel_Generator_RelationVarName="relationFK_Orders_OrderDetails" msprop:rel_Generator_UserChildTable="OrderDetails" msprop:rel_Generator_UserParentTable="Orders" msprop:rel_Generator_ParentPropName="OrdersRow" msprop:rel_Generator_ChildPropName="GetOrderDetailsRows">
      <xs:selector xpath=".//mstns:OrderDetails" />
      <xs:field xpath="mstns:OrderID" />
    </xs:keyref>
    <xs:keyref name="FK_Products_OrderDetails" refer="Products_Constraint1" msprop:rel_Generator_UserRelationName="FK_Products_OrderDetails" msprop:rel_User_ParentTable="Products" msprop:rel_Generator_UserChildTable="OrderDetails" msprop:rel_User_RelationName="FK_Products_OrderDetails" msprop:rel_Generator_RelationVarName="relationFK_Products_OrderDetails" msprop:rel_Generator_ChildPropName="GetOrderDetailsRows" msprop:rel_User_ChildTable="OrderDetails" msprop:rel_Generator_ParentPropName="ProductsRow" msprop:rel_Generator_UserParentTable="Products">
      <xs:selector xpath=".//mstns:OrderDetails" />
      <xs:field xpath="mstns:ProductID" />
    </xs:keyref>
    <xs:keyref name="FK_Customers_Orders" refer="Constraint1" msprop:rel_Generator_UserRelationName="FK_Customers_Orders" msprop:rel_User_ParentTable="Customers" msprop:rel_Generator_UserChildTable="Orders" msprop:rel_User_RelationName="FK_Customers_Orders" msprop:rel_Generator_RelationVarName="relationFK_Customers_Orders" msprop:rel_Generator_ChildPropName="GetOrdersRows" msprop:rel_User_ChildTable="Orders" msprop:rel_Generator_ParentPropName="CustomersRow" msprop:rel_Generator_UserParentTable="Customers">
      <xs:selector xpath=".//mstns:Orders" />
      <xs:field xpath="mstns:CustomerID" />
    </xs:keyref>
    <xs:keyref name="FK_Status_Orders" refer="Status_Constraint1" msprop:rel_Generator_UserRelationName="FK_Status_Orders" msprop:rel_User_ParentTable="Status" msprop:rel_Generator_UserChildTable="Orders" msprop:rel_User_RelationName="FK_Status_Orders" msprop:rel_Generator_RelationVarName="relationFK_Status_Orders" msprop:rel_Generator_ChildPropName="GetOrdersRows" msprop:rel_User_ChildTable="Orders" msprop:rel_Generator_ParentPropName="StatusRow" msprop:rel_Generator_UserParentTable="Status">
      <xs:selector xpath=".//mstns:Orders" />
      <xs:field xpath="mstns:StatusID" />
    </xs:keyref>
  </xs:element>
  <xs:annotation>
    <xs:appinfo>
      <msdata:Relationship name="Orders_Status" msdata:parent="Orders" msdata:child="Status" msdata:parentkey="StatusID" msdata:childkey="StatusID" msprop:Generator_UserRelationName="Orders_Status" msprop:User_ParentTable="Orders" msprop:Generator_UserChildTable="Status" msprop:User_RelationName="Orders_Status" msprop:Generator_RelationVarName="relationOrders_Status" msprop:Generator_ChildPropName="GetStatusRows" msprop:User_ChildTable="Status" msprop:Generator_ParentPropName="OrdersRow" msprop:Generator_UserParentTable="Orders" />
    </xs:appinfo>
  </xs:annotation>
</xs:schema>